import React from 'react'
import './index.scss'
import classNames from 'classnames'
export default function State({ text }) {
    return (
        <div className='state-container'>
            <span className={classNames({'ing': text === '存续'||'启用'||'正常', 'close': text === '锁定'})}></span>
            {text}
        </div>
    )
}
